package service;

import pojo.Admin;
import pojo.ChangeRoom;
import pojo.CheckInRecord;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;

/*
    Service层接口
 */
public interface ChangeRoomService {
    //查询所有换房信息
    public abstract ArrayList<ChangeRoom> findAll();

    //查询时间段内调房信息
    public abstract ArrayList<ChangeRoom> findDate(Date begin, Date end);


    //根据id获取换房对象
    public abstract ChangeRoom findById(Integer changeId);

    //新增换房信息
    public abstract int insert(ChangeRoom changeRoom);

    //修改换房信息
    public abstract int update(ChangeRoom changeRoom);

    //删除换房信息
    public abstract int delete(ChangeRoom changeRoom);
}
